﻿<?php
/* @var $this AdminController */

$this->breadcrumbs=array(
	'Admin'=>array('/admin/admin'),
	'Manage',
);
require_once(dirname(__FILE__)."../../../../../extensions/pageClass.php");
require_once(dirname(__FILE__)."../../../../../extensions/ajaxPage.php");
?>



<div class="warp">
	
	<table >
		<tr class='list_menu'>
			<td>编号</td>
			<td class="name">博文名</td>
			<td>浏览量</td>
			<td>评论数</td>
			<td>分类</td>
			<td>创建时间</td>
		</tr>
		<?php foreach ($articleList as $key => $value) 
{ ?>
		<tr class="tr_<?php echo $articleList[$key]['article_id']; ?>">
			<td><?php echo $articleList[$key]['article_id']; ?></td>
			<td class="name"><a href="../../blogdetail/index?article=<?php echo $articleList[$key]['article_id']; ?>"><?php echo $articleList[$key]['article_title'];?></a></td>
			<td><?php echo $articleList[$key]['browse_number'];?></td>
			<td><?php echo $articleList[$key]['comment_number'];?></td>
			<td><?php echo $articleList[$key]['sort_name'];?></td>
			<td><?php echo $articleList[$key]['article_createtime'];?></td>
			<?php if($params['whereParams']==='1')
				{
			?>
			<td><a href='javascript:void(0)' onclick="Curd(<?php echo $articleList[$key]['article_id']; ?>,'trash')">删除</a></td>
			<?php 
				}else if($params['whereParams'] ==='0'){
			?>
				<td><a href='javascript:void(0)' onclick="Curd(<?php echo $articleList[$key]['article_id']; ?>,'trash')">删除</a></td>
				<td><a href='javascript:void(0)' onclick="Curd(<?php echo $articleList[$key]['article_id']; ?>,'autited')">审核</a></td>
			<?php
				}else{
			?>
				<td><a href='javascript:void(0)' onclick="Curd(<?php echo $articleList[$key]['article_id']; ?>,'delete')">彻底删除</a></td>
				<td><a href='javascript:void(0)' onclick="Curd(<?php echo $articleList[$key]['article_id']; ?>,'recover')">还原</a></td>
			<?php
				}
			?>
		</tr>

<?php 
} ?>
	</table>
	<?php

		$page=new ajaxPage($limitNumber,$sumNumber,$currentPage,$url,$showNumber,$params);
		echo $page->showNumberPage();
	?>
</div>